ActionController::Routing::Routes.draw do |map|
  map.resources :chambres
  map.resources :reservations
  map.resources :clients

  map.root :controller => "welcome", :action => "index"
  
  map.connect '/welcome/', :controller => 'welcome', :action => 'index'
  map.connect '/admin/', :controller => 'admin', :action => 'index'
  map.connect '/reservations/', :controller => 'reservations', :action => 'index'
  
  
  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'
  
  
end
